.chat-container {
  padding: 0;
  margin: 0;
  height: 100%;

  .search-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 60px;
    background-color: #EEEEEE;
    z-index: 1001;

    .el-input {
      padding: 20px 50px 15px 10px;

      .el-input__inner {
        width: 190px;
        height: 25px;
        padding-left: 25px;
        font-size: 12px;
        border: none;
        background-color: #DBD9D8;

        &::-webkit-input-placeholder {
          color: #606266;
        }

        &:hover {
          border: none;
        }

        &:focus {
          border: none;
          background-color: #FFFFFF;
        }
      }

      .el-input__prefix {
        top: 20px;
        left: 10px;
        height: 25px;
        line-height: 25px;
        color: #606266;

        i {
          font-size: 12px;
          height: 25px;
          line-height: 25px;
        }
      }
    }

    .el-button {
      position: absolute;
      right: 15px;
      top: 20px;
      height: 25px;
      padding: 5px;
      color: #909399;
      border: none;
      background-color: #DCDFE6;
      cursor: pointer;
      z-index: 1002;

      &:hover {
        background-color: #D1D1D1;
      }

      i {
        color: #000000;
        font-weight: 100;
      }
    }
  }

  .chat-list-container {
    position: fixed;
    width: 250px;
    height: 100%;
    padding-top: 60px;
    z-index: 1000;

    .scrolling {
      height: 100%;
      background-color: #ECE9E8;
      overflow-x: hidden;
      overflow-y: hidden;

      &:hover {
        overflow-y: auto;
      }

      &::-webkit-scrollbar-track-piece {
        background: #E1DFDE;
      }

      &::-webkit-scrollbar {
        width: 6px;
      }

      &::-webkit-scrollbar-thumb {
        background: #B5B2B0;
      }

      ul {
        padding: 0;
        margin: 0;

        .chat-item {
          display: flex;
          align-content: center;
          height: 65px;
          padding: 12.5px 15px;
          box-sizing: border-box;
          user-select: none;
          cursor: pointer;

          &:hover {
            background-color: #DEDCDB;
          }

          .icon {
            font-size: 40px;
            line-height: 40px;
            position: relative;
          }

          .content {
            width: 100%;
            height: 40px;
            line-height: 40px;
            padding-left: 10px;

            .title {
              display: table;
              font-size: 15px;
              font-weight: 400;
              width: 125px;
              height: 20px;
              line-height: 20px;
              text-align: left;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
            }

            .last-chat {
              display: table;
              font-size: 12px;
              margin-top: 5px;
              height: 15px;
              line-height: 15px;
              text-align: left;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
              color: #999999;
            }
          }
        }
      }
    }
  }

  .chat-panel-container {
    position: fixed;
    width: 100%;
    height: 100%;
    padding: 20px 0 0 250px;
    z-index: 999;

    .chat-panel-header {
      position: relative;
      width: calc(100% - 60px);
      height: 40px;
      box-sizing: border-box;
      border-bottom: 1px solid #E7E7E7;
      z-index: 1000;

      span {
        text-align: left;
        font-size: 17px;
        padding: 0 0 10px 30px;
        cursor: default;
      }

      .svg-icon {
        position: absolute;
        top: 10px;
        right: 20px;
        cursor: pointer;
      }
    }

    .chat-panel-content {
      position: relative;
      width: calc(100% - 60px);
      height: 100%;
      padding: 0;
      z-index: 999;

      .scrolling {
        height: 100%;
        overflow-x: hidden;
        overflow-y: hidden;

        &:hover {
          overflow-y: auto;
        }

        &::-webkit-scrollbar-track-piece {
          background: #F5F5F5;
        }

        &::-webkit-scrollbar {
          width: 7px;
        }

        &::-webkit-scrollbar-thumb {
          background: #D2D2D2;
        }

        ul {
          padding: 0;
          margin: 0;
          z-index: 99;

          .history {
            text-align: center;
            color: #3294ff;
            font-size: 12px;
            padding-top: 10px;
            cursor: pointer;
          }

          .pull-left {
            text-align: left;
            padding: 10px 10px 10px 75px;

            .avatar {
              position: absolute;
              left: 30px;
            }

            .content {
              border: 1px solid #EDEDED;
            }
          }

          .pull-right {
            text-align: right;
            padding: 10px 75px 10px 10px;

            .avatar {
              position: absolute;
              right: 30px;
            }

            .content {
              margin-left: 0 !important;
              background-color: #9EEA6A !important;
            }
          }

          .chat-message-item {
            position: relative;
            align-content: center;
            margin: 0;
            box-sizing: border-box;
            cursor: default;
            z-index: 99;

            div {
              display: inline-block;
              vertical-align: top;
              font-size: 14px;
            }

            .avatar {
              width: 35px;
              height: 35px;

              img {
                width: 100%;
                height: 100%;
              }
            }

            .content {
              position: relative;
              max-width: 500px;
              min-height: 1em;
              display: inline-block;
              vertical-align: top;
              text-align: left;
              font-size: 14px;
              line-height: 20px;
              padding: 10px;
              background-color: #FFFFFF;
              border-radius: 3px;
              color: #232323;
              word-break: break-all;
              cursor: text;
            }
          }
        }
      }
    }

    .chat-panel-drag-line {
      width: 100%;
      border: 0.5px solid #ECECEC;
    }

    .chat-panel-input {
      position: relative;
      width: calc(100% - 60px);

      &:focus-within {
        background-color: #FFFFFF;

        .editor-content {
          &::-webkit-scrollbar-track-piece {
            background: #FFFFFF;
          }
        }
      }

      .editor-header {
        height: 40px;
        width: 100%;
        line-height: 40px;
        padding: 11px 0;

        .editor-icon {
          svg {
            fill: #5E5E5E !important;
          }

          &:hover {
            svg {
              fill: #1A1A1A !important;
            }
          }

          .svg-icon {
            position: absolute;
            font-size: 18px;
            cursor: pointer;

            &.emoji {
              left: 25px;
            }

            &.folder {
              left: 60px;
            }

            &.record {
              left: 95px;
            }
          }
        }
      }

      .editor-content {
        height: calc(100% - 80px);
        width: calc(100% - 40px);
        padding: 0;
        margin: 0 25px;
        outline: 0;
        word-break: break-all;
        font-size: 14px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-user-modify: read-write-plaintext-only;

        &::-webkit-scrollbar-track-piece {
          background: #F5F5F5;
        }

        &::-webkit-scrollbar {
          width: 6px;
        }

        &::-webkit-scrollbar-thumb {
          background: #DBDBDB;
        }
      }

      .chat-panel-submit {
        position: absolute;
        bottom: 9px;
        right: 0;

        button {
          margin: 0 30px 0 0;
          float: right;
          font-size: 13.5px;
          padding: 6px 12px;
          color: #606060;
          background-color: #F5F5F5;
          border-radius: 0;

          &:hover {
            border: 1px solid #E5E5E5;
            color: #FFFFFF;
            background-color: #129611;
          }

          &:active {
            border: 1px solid #E5E5E5;
          }

          &:focus {
            border: 1px solid #E5E5E5;
          }
        }
      }
    }
  }
}
